text = input("请输入一段文字：")
file = open("D:\hello.txt", "w")
file.write(text)
file.close()
print("已保存到D:\hello.txt文件中")
